/*
 * @Description:字典server
 * @Version: 2.0
 * @Autor: kafei
 * @Date: 2021-12-01 11:23:46
 * @LastEditors: kafei
 * @LastEditTime: 2021-12-01 11:29:22
 */

const execSQL = require('../db/connect')
const { createWhereSql } = require('../utils/sql')

async function getMapByTypeServer(type) {
  const sqlParams = {
    type
  }
  const sql = createWhereSql('dy_map', sqlParams)
  console.log(sql, 'sql')
  const result = await execSQL(sql)
  return result
}
module.exports = {
  getMapByTypeServer
}
